package com.sanyue.springboot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 解读：
 *  1.@MapperScan可以指定要扫描的mapper接口
 *  2.basePackages可以指定多个包
 *  3.作用为包内的mapper类不需要在配置@Mapper注解了
 * @author: Guan
 **/
@MapperScan(basePackages = {"com.sanyue.springboot.mapper"})
@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        ConfigurableApplicationContext run
                = SpringApplication.run(Application.class, args);
    }
}
